@import "@/theme/index.less";

.title-marker {
  width: 260rem;
  background: @modal-color;
  box-shadow: 0 0 10rem rgba(255, 255, 255, .5);
  border: 1rem solid rgba(255, 255, 255, .3);
  padding: 16rem;
  position: relative;
  border-radius: 3rem;
  -webkit-backdrop-filter: blur(7rem);
  backdrop-filter: blur(7rem);

  &:before {
    content: "";
    position: absolute;
    border-left: 10rem solid transparent;
    border-bottom: 10rem solid transparent;
    border-top: 10rem solid @modal-color;
    border-right: 10rem solid transparent;
    left: 50%;
    transform: translateX(-10rem);
    bottom: -23rem;
    z-index: 2;
    opacity: 1.1;
  }

  &:after {
    content: "";
    position: absolute;
    border-left: 10rem solid transparent;
    border-bottom: 10rem solid transparent;
    border-top: 12rem solid rgba(0, 0, 0, .5);
    border-right: 10rem solid transparent;
    left: 50%;
    transform: translateX(-10rem);
    bottom: -25rem;
    z-index: 1;
  }
}

.tip-marker-name {
  width: 200rem;
  font-size: 20rem;
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tip-marker-item {
  font-size: 16rem;
  white-space: nowrap;
  margin-top: 4rem;

  .marker-item-count {
    color: #fff;
  }

  .marker-item-unit {
    color: #787878;
  }

  .ant-statistic,
  .ant-statistic-content {
    display: inline-block;
    font-size: 16rem;
  }
}
